package com.appwoo.txtws.activity;

import android.app.Activity;
import android.app.ProgressDialog;
import android.app.admin.DevicePolicyManager;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.SystemClock;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.telephony.PhoneStateListener;
import android.telephony.SignalStrength;
import android.telephony.TelephonyManager;
import android.text.Editable;
import android.text.Html;
import android.text.TextUtils;
import android.text.format.Time;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.Chronometer;
import android.widget.Chronometer.OnChronometerTickListener;
import android.widget.EditText;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import cn.etzmico.dmp.deviceAdminReceiver;
import com.appwoo.android.exception.NotFoundNetWorkException;
import com.appwoo.android.exception.TimeOutException;
import com.appwoo.txtws.adapter.MyPagerAdapter;
import com.appwoo.txtws.adapter.NotifyAdapter;
import com.appwoo.txtws.adapter.ScreenPhoneAdapter;
import com.appwoo.txtws.adapter.ScreenWeekAdapter;
import com.appwoo.txtws.app.App;
import com.appwoo.txtws.bean.PhoneBean;
import com.appwoo.txtws.bean.ServerAppBean;
import com.appwoo.txtws.bean.TimeSeniorBean;
import com.appwoo.txtws.component.CrypHelper;
import com.appwoo.txtws.component.DBHelper;
import com.appwoo.txtws.component.Global;
import com.appwoo.txtws.component.KeyboardUtil;
import com.appwoo.txtws.component.Logger;
import com.appwoo.txtws.component.MD5Builder;
import com.appwoo.txtws.component.NotifyDao;
import com.appwoo.txtws.component.RootHelper;
import com.appwoo.txtws.component.VolumeCtrl;
import com.appwoo.txtws.service.LoginService;
import com.appwoo.txtws.service.RQFamilyPhone;
import com.appwoo.txtws.service.RQKeepAlive;
import com.appwoo.txtws.service.RQNotify;
import com.appwoo.txtws.service.WebTimeControlService;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.xmlpull.v1.XmlPullParserException;

public class ScreenOffActivity extends Activity
  implements View.OnClickListener, View.OnTouchListener
{
  public static final String ACTION_FINISH_ACTIVITY = "closeScreenActivity";
  public static final String ACTION_SHOW_NOTIFY = "showNotify";
  public static final String CONNECTIVITY_CHANGE_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
  private MyPhoneStateListener MyListener;
  private TelephonyManager Tel;
  private int bmpW;
  private Chronometer chronometer;
  private int currIndex;
  private int currIndex2;
  private ImageView cursor;
  private SharedPreferences.Editor editor;
  private TextView emer_dialnum;
  private TextView emer_dialnum_cancel;
  private Button emergencydial_answer;
  private Button emergencydial_reject;
  private ExpandableListView expand_notify;
  private Handler handler;
  private RelativeLayout linear_course;
  private RelativeLayout linear_notify;
  private RelativeLayout linear_phone;
  private LinearLayout linear_srn;
  private List<View> listViews;
  private List<View> listViews2;
  private ArrayList<TimeSeniorBean>[] lists;
  private View lock;
  private LoginService loginService;
  private ViewPager mPager;
  private ViewPager mPager2;
  private BroadcastReceiver mReceiver;
  private BroadcastReceiver mStaReceiver;
  ScreenPhoneAdapter myQQAdapter;
  private ArrayList<NotifyDao> notifyList;
  private String num;
  private int offset;
  private ArrayList<PhoneBean> phonebeanListJJ;
  private ArrayList<PhoneBean> phonebeanListQQ;
  private int[] powPic;
  private RunLow runlow = new RunLow();
  private ServerAppBean serverAppBean;
  private int[] signPic = { 2130837965, 2130837966, 2130837967, 2130837968, 2130837969, 2130837970 };
  private EditText sln_et_unlock;
  private LinearLayout sln_lin_tab;
  private ListView sln_list_jj;
  private ListView sln_list_qq;
  private ListView sln_list_week1;
  private ListView sln_list_week2;
  private ListView sln_list_week3;
  private ListView sln_list_week4;
  private ListView sln_list_week5;
  private ListView sln_list_week6;
  private ListView sln_list_week7;
  private RelativeLayout sln_rel_bottommenu;
  private RelativeLayout sln_rel_menu;
  private RelativeLayout sln_rel_phoneask;
  private RelativeLayout sln_rel_shutdown;
  private RelativeLayout sln_rel_unlock;
  private TextView sln_tv_back_course;
  private TextView sln_tv_back_notify;
  private TextView sln_tv_back_phone;
  private TextView sln_tv_cancel;
  private LinearLayout sln_tv_course;
  private TextView sln_tv_date;
  private TextView sln_tv_jj;
  private TextView sln_tv_menu_guanji;
  private TextView sln_tv_menu_unlock;
  private LinearLayout sln_tv_more;
  private LinearLayout sln_tv_notify;
  private TextView sln_tv_qq;
  private TextView sln_tv_stuname;
  private TextView sln_tv_time;
  private LinearLayout sln_tv_tongxun;
  private TextView sln_tv_unlock_cancel;
  private TextView sln_tv_unlock_yes;
  private TextView sln_tv_week1;
  private TextView sln_tv_week2;
  private TextView sln_tv_week3;
  private TextView sln_tv_week4;
  private TextView sln_tv_week5;
  private TextView sln_tv_week6;
  private TextView sln_tv_week7;
  private TextView sln_tv_yes;
  private SharedPreferences sp;
  private int telLog;
  private TextView tv_pwderror;
  private TextView tv_pwdinput;
  private TextView tv_sta_3g;
  private TextView tv_sta_pow;
  private TextView tv_sta_sign;
  private TextView tv_sta_time;
  private TextView tv_sta_wifi;
  private ProgressDialog v_progressDialog;

  public ScreenOffActivity()
  {
    int[] arrayOfInt = new int[6];
    arrayOfInt[1] = 2130837960;
    arrayOfInt[2] = 2130837961;
    arrayOfInt[3] = 2130837962;
    arrayOfInt[4] = 2130837963;
    arrayOfInt[5] = 2130837964;
    this.powPic = arrayOfInt;
    this.telLog = 0;
    this.offset = 0;
    this.currIndex = 0;
    this.num = "";
    this.currIndex2 = 0;
    this.notifyList = null;
    this.mReceiver = new BroadcastReceiver()
    {
      public void onReceive(Context paramAnonymousContext, Intent paramAnonymousIntent)
      {
        String str = paramAnonymousIntent.getAction();
        if (str.equals("closeScreenActivity"))
        {
          if (ScreenOffActivity.this.serverAppBean.contaList.size() <= 0)
          {
            localIntent = new Intent();
            localIntent.setClass(ScreenOffActivity.this, MainActivity.class);
            localIntent.setFlags(268435456);
            ScreenOffActivity.this.startActivity(localIntent);
          }
          ScreenOffActivity.this.finish();
        }
        while (!"showNotify".equals(str))
        {
          Intent localIntent;
          return;
        }
        ScreenOffActivity.this.showNotify();
        Global.zhenDong(paramAnonymousContext);
      }
    };
    this.mStaReceiver = new BroadcastReceiver()
    {
      public void onReceive(Context paramAnonymousContext, Intent paramAnonymousIntent)
      {
        String str1 = paramAnonymousIntent.getAction();
        if ("android.intent.action.BATTERY_CHANGED".equals(str1))
        {
          i = paramAnonymousIntent.getIntExtra("level", 0);
          j = paramAnonymousIntent.getIntExtra("scale", 100);
          k = i * 100 / j;
          ScreenOffActivity.this.tv_sta_pow = ((TextView)ScreenOffActivity.this.lock.findViewById(2131493526));
          if (k > 90)
            ScreenOffActivity.this.tv_sta_pow.setBackgroundResource(ScreenOffActivity.this.powPic[5]);
        }
        while (!TextUtils.equals(str1, "android.net.conn.CONNECTIVITY_CHANGE"))
        {
          int i;
          int j;
          int k;
          return;
          if (k > 75)
          {
            ScreenOffActivity.this.tv_sta_pow.setBackgroundResource(ScreenOffActivity.this.powPic[4]);
            return;
          }
          if (k > 50)
          {
            ScreenOffActivity.this.tv_sta_pow.setBackgroundResource(ScreenOffActivity.this.powPic[3]);
            return;
          }
          if (k > 30)
          {
            ScreenOffActivity.this.tv_sta_pow.setBackgroundResource(ScreenOffActivity.this.powPic[2]);
            return;
          }
          ScreenOffActivity.this.tv_sta_pow.setBackgroundResource(ScreenOffActivity.this.powPic[1]);
          return;
        }
        ScreenOffActivity.this.tv_sta_wifi = ((TextView)ScreenOffActivity.this.lock.findViewById(2131493523));
        ScreenOffActivity.this.tv_sta_3g = ((TextView)ScreenOffActivity.this.lock.findViewById(2131493524));
        Logger.i("xjf", "**lock-网络变化了");
        NetworkInfo localNetworkInfo = ScreenOffActivity.getActiveNetwork(paramAnonymousContext);
        if (localNetworkInfo == null)
        {
          Logger.w("xjf", "lock-无网络");
          ScreenOffActivity.this.tv_sta_wifi.setVisibility(8);
          ScreenOffActivity.this.tv_sta_3g.setVisibility(8);
          return;
        }
        if (localNetworkInfo.getTypeName().equals("WIFI"))
        {
          Logger.w("xjf", "lock-WIFI网络");
          ScreenOffActivity.this.tv_sta_wifi.setVisibility(0);
          ScreenOffActivity.this.tv_sta_3g.setVisibility(8);
          return;
        }
        ScreenOffActivity.this.tv_sta_wifi.setVisibility(8);
        ScreenOffActivity.this.tv_sta_3g.setVisibility(0);
        String str2 = localNetworkInfo.getExtraInfo();
        Logger.w("xjf", "lock-移动网络\tAPN:[" + str2 + "]");
      }
    };
  }

  private void InitImageView()
  {
    this.cursor = ((ImageView)this.lock.findViewById(2131493426));
    this.bmpW = BitmapFactory.decodeResource(getResources(), 2130837504).getWidth();
    DisplayMetrics localDisplayMetrics = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(localDisplayMetrics);
    this.offset = ((localDisplayMetrics.widthPixels / 2 - this.bmpW) / 2);
    Matrix localMatrix = new Matrix();
    localMatrix.postTranslate(this.offset, 0.0F);
    this.cursor.setImageMatrix(localMatrix);
  }

  private void InitImageView2()
  {
    this.cursor = ((ImageView)this.lock.findViewById(2131493426));
    this.bmpW = BitmapFactory.decodeResource(getResources(), 2130837504).getWidth();
    DisplayMetrics localDisplayMetrics = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(localDisplayMetrics);
    this.offset = ((localDisplayMetrics.widthPixels / 2 - this.bmpW) / 2);
    Matrix localMatrix = new Matrix();
    localMatrix.postTranslate(this.offset, 0.0F);
    this.cursor.setImageMatrix(localMatrix);
  }

  private void InitViewPager()
  {
    this.mPager = ((ViewPager)this.lock.findViewById(2131493427));
    LayoutInflater localLayoutInflater = getLayoutInflater();
    new String[] { "1", "12", "13", "14", "15", "1f", "1fds", "1hg", "1r", "1wer", "1fds", "1fsd", "1sd", "1sdf", "1sd" };
    View localView1 = localLayoutInflater.inflate(2130903195, null);
    View localView2 = localLayoutInflater.inflate(2130903194, null);
    this.listViews = new ArrayList();
    this.sln_list_qq = ((ListView)localView1.findViewById(2131493507));
    this.myQQAdapter = new ScreenPhoneAdapter(this, this.phonebeanListQQ);
    this.sln_list_qq.setAdapter(this.myQQAdapter);
    ScreenPhoneAdapter localScreenPhoneAdapter = new ScreenPhoneAdapter(this, this.phonebeanListJJ);
    this.sln_list_jj = ((ListView)localView2.findViewById(2131493506));
    this.sln_list_jj.setAdapter(new ScreenPhoneAdapter(this, this.phonebeanListJJ));
    localScreenPhoneAdapter.notifyDataSetChanged();
    this.listViews.add(localView1);
    this.listViews.add(localView2);
    MyPagerAdapter localMyPagerAdapter = new MyPagerAdapter(this.listViews);
    this.mPager.setAdapter(new MyPagerAdapter(this.listViews));
    localMyPagerAdapter.notifyDataSetChanged();
    this.mPager.setCurrentItem(0);
    this.mPager.setOnPageChangeListener(new MyOnPageChangeListener());
  }

  private void InitViewPager2()
  {
    LayoutInflater localLayoutInflater = getLayoutInflater();
    new String[] { "1", "12", "13", "14", "15", "1f", "1fds", "1hg" };
    View localView1 = localLayoutInflater.inflate(2130903197, null);
    View localView2 = localLayoutInflater.inflate(2130903198, null);
    View localView3 = localLayoutInflater.inflate(2130903199, null);
    View localView4 = localLayoutInflater.inflate(2130903200, null);
    View localView5 = localLayoutInflater.inflate(2130903201, null);
    View localView6 = localLayoutInflater.inflate(2130903202, null);
    View localView7 = localLayoutInflater.inflate(2130903203, null);
    this.listViews2 = new ArrayList();
    this.sln_list_week1 = ((ListView)localView1.findViewById(2131493511));
    this.sln_list_week2 = ((ListView)localView2.findViewById(2131493512));
    this.sln_list_week3 = ((ListView)localView3.findViewById(2131493513));
    this.sln_list_week4 = ((ListView)localView4.findViewById(2131493514));
    this.sln_list_week5 = ((ListView)localView5.findViewById(2131493515));
    this.sln_list_week6 = ((ListView)localView6.findViewById(2131493516));
    this.sln_list_week7 = ((ListView)localView7.findViewById(2131493517));
    bindAdapter2();
    this.listViews2.clear();
    this.listViews2.add(localView1);
    this.listViews2.add(localView2);
    this.listViews2.add(localView3);
    this.listViews2.add(localView4);
    this.listViews2.add(localView5);
    this.listViews2.add(localView6);
    this.listViews2.add(localView7);
    this.mPager2.setAdapter(new MyPagerAdapter(this.listViews2));
    this.mPager2.setCurrentItem(0);
    this.mPager2.setOnPageChangeListener(new MyOnPageChangeListener2());
  }

  private void ShowScreen()
  {
    this.linear_srn.setVisibility(0);
    goneTongXun();
    goneCourse();
    goneNotify();
    goneMenu();
  }

  private void addContactListener()
  {
    this.sln_tv_back_phone.setOnClickListener(this);
    this.sln_tv_qq.setOnClickListener(new MyOnClickListener(0));
    this.sln_tv_jj.setOnClickListener(new MyOnClickListener(1));
    this.emer_dialnum.setOnClickListener(this);
    this.emer_dialnum_cancel.setOnClickListener(this);
    this.sln_list_qq.setOnItemClickListener(new AdapterView.OnItemClickListener()
    {
      public void onItemClick(AdapterView<?> paramAnonymousAdapterView, View paramAnonymousView, int paramAnonymousInt, long paramAnonymousLong)
      {
        new PhoneBean();
        PhoneBean localPhoneBean = (PhoneBean)ScreenOffActivity.this.phonebeanListQQ.get(paramAnonymousInt);
        ScreenOffActivity.this.num = localPhoneBean.getPno();
        ScreenOffActivity.this.showDial();
      }
    });
    this.sln_list_jj.setOnItemClickListener(new AdapterView.OnItemClickListener()
    {
      public void onItemClick(AdapterView<?> paramAnonymousAdapterView, View paramAnonymousView, int paramAnonymousInt, long paramAnonymousLong)
      {
        new PhoneBean();
        PhoneBean localPhoneBean = (PhoneBean)ScreenOffActivity.this.phonebeanListJJ.get(paramAnonymousInt);
        ScreenOffActivity.this.num = localPhoneBean.getPno();
        ScreenOffActivity.this.showDial();
      }
    });
  }

  private void addCourseListener()
  {
    this.sln_tv_back_course.setOnClickListener(this);
    this.sln_tv_week1.setOnClickListener(new MyOnClickListener2(0));
    this.sln_tv_week2.setOnClickListener(new MyOnClickListener2(1));
    this.sln_tv_week3.setOnClickListener(new MyOnClickListener2(2));
    this.sln_tv_week4.setOnClickListener(new MyOnClickListener2(3));
    this.sln_tv_week5.setOnClickListener(new MyOnClickListener2(4));
    this.sln_tv_week6.setOnClickListener(new MyOnClickListener2(5));
    this.sln_tv_week7.setOnClickListener(new MyOnClickListener2(6));
  }

  private void addListener()
  {
    this.sln_tv_tongxun.setOnClickListener(this);
    this.sln_tv_notify.setOnClickListener(this);
    this.sln_tv_course.setOnClickListener(this);
    this.sln_tv_more.setOnClickListener(this);
    this.sln_tv_menu_unlock.setOnClickListener(this);
    this.sln_tv_menu_guanji.setOnClickListener(this);
    this.sln_rel_menu.setOnTouchListener(this);
    this.sln_tv_cancel.setOnClickListener(this);
    this.sln_tv_yes.setOnClickListener(this);
    this.sln_tv_unlock_cancel.setOnClickListener(this);
    this.sln_tv_unlock_yes.setOnClickListener(this);
    this.emergencydial_answer.setOnClickListener(this);
    this.emergencydial_reject.setOnClickListener(this);
    addContactListener();
    addCourseListener();
    addNotifyListener();
  }

  private void addNotifyListener()
  {
    this.sln_tv_back_notify.setOnClickListener(this);
  }

  private void bindAdapter2()
  {
    DBHelper localDBHelper = new DBHelper(this);
    this.sln_list_week1.setAdapter(new ScreenWeekAdapter(this, localDBHelper.getSeniorTime2("1")));
    this.sln_list_week2.setAdapter(new ScreenWeekAdapter(this, localDBHelper.getSeniorTime2("2")));
    this.sln_list_week3.setAdapter(new ScreenWeekAdapter(this, localDBHelper.getSeniorTime2("3")));
    this.sln_list_week4.setAdapter(new ScreenWeekAdapter(this, localDBHelper.getSeniorTime2("4")));
    this.sln_list_week5.setAdapter(new ScreenWeekAdapter(this, localDBHelper.getSeniorTime2("5")));
    this.sln_list_week6.setAdapter(new ScreenWeekAdapter(this, localDBHelper.getSeniorTime2("6")));
    this.sln_list_week7.setAdapter(new ScreenWeekAdapter(this, localDBHelper.getSeniorTime2("7")));
  }

  private void bindAdapterNotify(ArrayList<NotifyDao> paramArrayList)
  {
    ArrayList localArrayList1 = new ArrayList();
    ArrayList localArrayList2 = new ArrayList();
    for (int i = 0; ; i++)
    {
      if (i >= paramArrayList.size())
      {
        NotifyAdapter localNotifyAdapter = new NotifyAdapter(this, localArrayList2, localArrayList1);
        this.expand_notify.setAdapter(localNotifyAdapter);
        return;
      }
      HashMap localHashMap1 = new HashMap();
      localHashMap1.put("title", ((NotifyDao)paramArrayList.get(i)).getTitle());
      localHashMap1.put("time", ((NotifyDao)paramArrayList.get(i)).getTime());
      localArrayList1.add(localHashMap1);
      ArrayList localArrayList3 = new ArrayList();
      HashMap localHashMap2 = new HashMap();
      localHashMap2.put("message", ((NotifyDao)paramArrayList.get(i)).getMessage());
      localArrayList3.add(localHashMap2);
      localArrayList2.add(localArrayList3);
    }
  }

  private void createOrShowDialog()
  {
    if ((this.v_progressDialog == null) || (!this.v_progressDialog.isShowing()))
    {
      this.v_progressDialog = new ProgressDialog(this);
      this.v_progressDialog.setMessage(getString(2131427516));
      this.v_progressDialog.setCancelable(true);
      this.v_progressDialog.show();
    }
  }

  private void dealPhoneAsk()
  {
    if (Global.isDialAgo)
    {
      ShowScreen();
      showPhoneAsk();
      if (Global.isAnswerAgo)
        this.emergencydial_answer.setVisibility(0);
      while (true)
      {
        this.emergencydial_reject.setBackgroundDrawable(getResources().getDrawable(2130837789));
        this.emergencydial_reject.setVisibility(0);
        return;
        this.emergencydial_answer.setVisibility(8);
      }
    }
    gonePhoneAsk();
  }

  private void dialNum(String paramString)
  {
    Global.isDialAgo = true;
    Global.isAnswerAgo = false;
    try
    {
      startActivity(new Intent("android.intent.action.CALL", Uri.parse("tel:" + paramString)));
      goneDial();
      return;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
    }
  }

  public static NetworkInfo getActiveNetwork(Context paramContext)
  {
    if (paramContext == null);
    ConnectivityManager localConnectivityManager;
    do
    {
      return null;
      localConnectivityManager = (ConnectivityManager)paramContext.getSystemService("connectivity");
    }
    while (localConnectivityManager == null);
    return localConnectivityManager.getActiveNetworkInfo();
  }

  private ArrayList<NotifyDao> getNotifyData()
  {
    this.notifyList = new ArrayList();
    this.notifyList = new RQNotify(this).getNotify();
    return this.notifyList;
  }

  private void goneAllTip()
  {
    this.tv_pwderror.setVisibility(4);
    this.tv_pwdinput.setVisibility(4);
  }

  private void goneCourse()
  {
    this.linear_course.setVisibility(8);
  }

  private void goneDial()
  {
    this.emer_dialnum.setVisibility(8);
    this.emer_dialnum_cancel.setVisibility(8);
    this.num = "";
  }

  private void goneMenu()
  {
    this.sln_rel_menu.setVisibility(8);
    this.sln_rel_bottommenu.setVisibility(0);
  }

  private void goneNotify()
  {
    this.linear_notify.setVisibility(8);
  }

  private void gonePhoneAsk()
  {
    this.sln_rel_phoneask.setVisibility(8);
  }

  private void goneScreen()
  {
    this.linear_srn.setVisibility(8);
  }

  private void goneShutDownDialog()
  {
    this.sln_rel_shutdown.setVisibility(8);
  }

  private void goneTongXun()
  {
    this.linear_phone.setVisibility(8);
  }

  private void goneUnlockDialog()
  {
    this.sln_rel_unlock.setVisibility(8);
  }

  private void init()
  {
    VolumeCtrl.silent(this);
    this.MyListener = new MyPhoneStateListener(null);
    this.Tel = ((TelephonyManager)getSystemService("phone"));
    this.Tel.listen(this.MyListener, 256);
    initSrnLock();
    this.chronometer = ((Chronometer)this.lock.findViewById(2131493394));
    this.chronometer.start();
    this.chronometer.setOnChronometerTickListener(new Chronometer.OnChronometerTickListener()
    {
      public void onChronometerTick(Chronometer paramAnonymousChronometer)
      {
        if (SystemClock.elapsedRealtime() - paramAnonymousChronometer.getBase() > 10000L)
        {
          paramAnonymousChronometer.setBase(SystemClock.elapsedRealtime());
          ScreenOffActivity.this.setTimeDate();
        }
      }
    });
    setTimeDate();
    initContact();
    initCourse();
    initNotify();
  }

  private void initContact()
  {
    this.linear_phone = ((RelativeLayout)this.lock.findViewById(2131493420));
    this.sln_tv_back_phone = ((TextView)this.lock.findViewById(2131493422));
    this.sln_list_qq = ((ListView)this.lock.findViewById(2131493507));
    this.sln_list_jj = ((ListView)this.lock.findViewById(2131493506));
    this.sln_lin_tab = ((LinearLayout)this.lock.findViewById(2131493423));
    this.sln_tv_qq = ((TextView)this.lock.findViewById(2131493424));
    this.sln_tv_jj = ((TextView)this.lock.findViewById(2131493425));
    this.emer_dialnum = ((TextView)this.lock.findViewById(2131493428));
    this.emer_dialnum_cancel = ((TextView)this.lock.findViewById(2131493429));
    this.phonebeanListQQ = new RQFamilyPhone(this).getQQPhone();
    initJJList();
    InitImageView();
    InitViewPager();
  }

  private void initCourse()
  {
    this.linear_course = ((RelativeLayout)this.lock.findViewById(2131493430));
    this.sln_tv_back_course = ((TextView)this.lock.findViewById(2131493432));
    this.mPager2 = ((ViewPager)this.lock.findViewById(2131493441));
    this.sln_tv_week1 = ((TextView)this.lock.findViewById(2131493434));
    this.sln_tv_week2 = ((TextView)this.lock.findViewById(2131493435));
    this.sln_tv_week3 = ((TextView)this.lock.findViewById(2131493436));
    this.sln_tv_week4 = ((TextView)this.lock.findViewById(2131493437));
    this.sln_tv_week5 = ((TextView)this.lock.findViewById(2131493438));
    this.sln_tv_week6 = ((TextView)this.lock.findViewById(2131493439));
    this.sln_tv_week7 = ((TextView)this.lock.findViewById(2131493440));
    InitImageView2();
    InitViewPager2();
  }

  private void initJJList()
  {
    String[] arrayOfString1 = new String[5];
    arrayOfString1[0] = getString(2131427612);
    arrayOfString1[1] = getString(2131427613);
    arrayOfString1[2] = getString(2131427614);
    arrayOfString1[3] = getString(2131427615);
    arrayOfString1[4] = getString(2131427616);
    String[] arrayOfString2 = { "110", "120", "119", "114", "122" };
    this.phonebeanListJJ = new ArrayList();
    this.phonebeanListJJ.clear();
    for (int i = 0; ; i++)
    {
      if (i >= arrayOfString1.length)
        return;
      PhoneBean localPhoneBean = new PhoneBean();
      localPhoneBean.setPno(arrayOfString2[i]);
      localPhoneBean.setPname(arrayOfString1[i]);
      this.phonebeanListJJ.add(localPhoneBean);
    }
  }

  private void initNotify()
  {
    this.linear_notify = ((RelativeLayout)this.lock.findViewById(2131493442));
    this.sln_tv_back_notify = ((TextView)this.lock.findViewById(2131493444));
    this.expand_notify = ((ExpandableListView)this.lock.findViewById(2131493445));
    this.expand_notify.setGroupIndicator(null);
    bindAdapterNotify(getNotifyData());
  }

  private void initSrnLock()
  {
    this.loginService = new LoginService();
    this.handler = new Handler();
    this.linear_srn = ((LinearLayout)this.lock.findViewById(2131493395));
    this.sln_tv_time = ((TextView)this.lock.findViewById(2131493403));
    this.sln_tv_date = ((TextView)this.lock.findViewById(2131493404));
    this.sln_tv_stuname = ((TextView)this.lock.findViewById(2131493405));
    this.sln_rel_shutdown = ((RelativeLayout)this.lock.findViewById(2131493409));
    this.sln_tv_cancel = ((TextView)this.lock.findViewById(2131493410));
    this.sln_tv_yes = ((TextView)this.lock.findViewById(2131493411));
    this.sln_rel_unlock = ((RelativeLayout)this.lock.findViewById(2131493396));
    this.sln_et_unlock = ((EditText)this.lock.findViewById(2131493397));
    this.sln_tv_unlock_cancel = ((TextView)this.lock.findViewById(2131493400));
    this.sln_tv_unlock_yes = ((TextView)this.lock.findViewById(2131493401));
    this.tv_pwderror = ((TextView)this.lock.findViewById(2131493398));
    this.tv_pwdinput = ((TextView)this.lock.findViewById(2131493399));
    this.sln_et_unlock.setLongClickable(false);
    this.sln_et_unlock.setOnTouchListener(new View.OnTouchListener()
    {
      public boolean onTouch(View paramAnonymousView, MotionEvent paramAnonymousMotionEvent)
      {
        int i = ScreenOffActivity.this.sln_et_unlock.getInputType();
        ScreenOffActivity.this.sln_et_unlock.setInputType(0);
        new KeyboardUtil(ScreenOffActivity.this.lock, ScreenOffActivity.this, ScreenOffActivity.this.sln_et_unlock).showKeyboard();
        ScreenOffActivity.this.sln_et_unlock.setInputType(i);
        return false;
      }
    });
    this.sp = getSharedPreferences("ScreenLock", 0);
    this.editor = this.sp.edit();
    this.editor.putString("isLock", "1");
    this.editor.commit();
    this.sln_rel_bottommenu = ((RelativeLayout)this.lock.findViewById(2131493412));
    this.sln_tv_tongxun = ((LinearLayout)this.lock.findViewById(2131493413));
    this.sln_tv_notify = ((LinearLayout)this.lock.findViewById(2131493414));
    this.sln_tv_course = ((LinearLayout)this.lock.findViewById(2131493415));
    this.sln_tv_more = ((LinearLayout)this.lock.findViewById(2131493416));
    this.sln_rel_menu = ((RelativeLayout)this.lock.findViewById(2131493417));
    this.sln_tv_menu_unlock = ((TextView)this.lock.findViewById(2131493418));
    this.sln_tv_menu_guanji = ((TextView)this.lock.findViewById(2131493419));
    this.sln_rel_phoneask = ((RelativeLayout)this.lock.findViewById(2131493406));
    this.emergencydial_answer = ((Button)this.lock.findViewById(2131493407));
    this.emergencydial_reject = ((Button)this.lock.findViewById(2131493408));
  }

  private boolean isSimReady()
  {
    return ((TelephonyManager)getSystemService("phone")).getSimState() == 5;
  }

  private void phoneAnswer()
  {
    this.emergencydial_answer.setVisibility(8);
    this.emergencydial_reject.setVisibility(0);
    answerRingingCall();
    Global.isAnswerAgo = false;
  }

  private void phoneReject()
  {
    Global.getTelephony(this, "end");
    Global.isDialAgo = false;
    gonePhoneAsk();
  }

  private void setNameOfSchool()
  {
    SharedPreferences localSharedPreferences = getSharedPreferences("firstLogin", 0);
    String str1;
    String str2;
    TextView localTextView;
    if (localSharedPreferences.getInt("isSchool", -1) == 1)
    {
      str1 = localSharedPreferences.getString("deptName", null);
      str2 = localSharedPreferences.getString("stuName", null);
      Logger.d("ttag", "deptName:" + str1);
      Logger.d("ttag", "stuName:" + str2);
      localTextView = this.sln_tv_stuname;
      if (str1 != null)
        break label141;
    }
    label141: for (String str3 = ""; ; str3 = str1 + "\t")
    {
      StringBuilder localStringBuilder = new StringBuilder(String.valueOf(str3));
      if (str2 == null)
        str2 = "";
      localTextView.setText(str2);
      return;
    }
  }

  private void setTimeDate()
  {
    Time localTime = new Time();
    localTime.set(Global.getServerTimeMills(this));
    int i = localTime.year;
    int j = 1 + localTime.month;
    int k = localTime.monthDay;
    int m = localTime.hour;
    int n = localTime.minute;
    String str1;
    String str2;
    label106: String str3;
    if (m < 10)
    {
      str1 = "0" + String.valueOf(m);
      if (n >= 10)
        break label264;
      str2 = "0" + String.valueOf(n);
      int i1 = localTime.weekDay;
      str3 = null;
      switch (i1)
      {
      default:
      case 0:
      case 1:
      case 2:
      case 3:
      case 4:
      case 5:
      case 6:
      }
    }
    while (true)
    {
      this.sln_tv_date.setText("  " + i + "." + j + "." + k + "\t" + str3);
      this.sln_tv_time.setText(str1 + ":" + str2);
      return;
      str1 = String.valueOf(m);
      break;
      label264: str2 = String.valueOf(n);
      break label106;
      str3 = getString(2131427851);
      continue;
      str3 = getString(2131427852);
      continue;
      str3 = getString(2131427853);
      continue;
      str3 = getString(2131427854);
      continue;
      str3 = getString(2131427855);
      continue;
      str3 = getString(2131427856);
      continue;
      str3 = getString(2131427857);
    }
  }

  private void showBottomMenu()
  {
    goneUnlockDialog();
    goneShutDownDialog();
    goneMenu();
    this.sln_rel_bottommenu.setVisibility(0);
  }

  private void showCourse()
  {
    this.linear_course.setVisibility(0);
    goneTongXun();
    goneScreen();
    goneNotify();
  }

  private void showDial()
  {
    this.emer_dialnum.setVisibility(0);
    this.emer_dialnum_cancel.setVisibility(0);
  }

  private void showErrorTip()
  {
    goneAllTip();
    this.tv_pwderror.setVisibility(0);
  }

  private void showFamilyScrn()
  {
    Global.isSchool = getSharedPreferences("firstLogin", 0).getInt("isSchool", -1);
    if (Global.isSchool == 0)
    {
      this.sln_tv_notify.setVisibility(8);
      this.sln_tv_course.setVisibility(8);
      this.sln_tv_stuname.setText(Global.PARENT_ID);
    }
  }

  private void showMenu()
  {
    this.sln_rel_menu.setVisibility(0);
    this.sln_rel_bottommenu.setVisibility(8);
  }

  private void showNotify()
  {
    try
    {
      bindAdapterNotify(getNotifyData());
      label8: this.linear_notify.setVisibility(0);
      goneCourse();
      goneTongXun();
      goneScreen();
      return;
    }
    catch (Exception localException)
    {
      break label8;
    }
  }

  private void showNullTip()
  {
    goneAllTip();
    this.tv_pwdinput.setVisibility(0);
  }

  private void showPhoneAsk()
  {
    this.sln_rel_phoneask.setVisibility(0);
    this.emergencydial_answer.setVisibility(0);
    this.emergencydial_reject.setVisibility(0);
  }

  private void showShutDownDialog()
  {
    this.sln_rel_shutdown.setVisibility(0);
    if (Global.hasRoot)
    {
      this.sln_tv_yes.setVisibility(0);
      return;
    }
    this.sln_tv_yes.setVisibility(8);
  }

  private void showTongXun()
  {
    try
    {
      bindAdapter2();
      this.linear_phone.setVisibility(0);
      goneScreen();
      goneCourse();
      goneNotify();
      return;
    }
    catch (Exception localException)
    {
      while (true)
        localException.printStackTrace();
    }
  }

  private void showUnlockDialog()
  {
    this.sln_rel_unlock.setVisibility(0);
    goneAllTip();
  }

  private void toShutdown()
  {
    try
    {
      RootHelper.shutDown(this);
      return;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
    }
  }

  private void toUnlock()
  {
    RQKeepAlive localRQKeepAlive = RQKeepAlive.getInstance();
    String str1 = this.sln_et_unlock.getText().toString();
    if (!"".equals(str1))
    {
      String str2 = MD5Builder.getZjMD5(str1);
      String str3 = MD5Builder.getMD5(str1);
      if (Global.PASSWORD == null)
      {
        if (CrypHelper.decodeString(str1, 3).equalsIgnoreCase(Global.getDateTime(this).substring(2, 10)))
        {
          new MyAsyncTask().execute(new String[] { "screenLock" });
          return;
        }
        System.out.println("Global.PASSWORD == null");
        localRQKeepAlive.call(this);
        return;
      }
      if ((str2.equals(Global.PASSWORD)) || (str3.equals(Global.PASSWORD)))
      {
        new MyAsyncTask().execute(new String[] { "screenLock" });
        return;
      }
      if (CrypHelper.decodeString(str1, 3).equalsIgnoreCase(Global.getDateTime(this).substring(2, 10)))
      {
        new MyAsyncTask().execute(new String[] { "screenLock" });
        return;
      }
      if (CrypHelper.nDecodeString().equals(str1))
      {
        new MyAsyncTask().execute(new String[] { "screenLock" });
        return;
      }
      Toast.makeText(this, getString(2131427576), 0).show();
      return;
    }
    Toast.makeText(this, getString(2131427732), 0).show();
  }

  private String updateScreenState(String paramString)
  {
    Object localObject = "";
    try
    {
      String str1 = Global.getIMEI(this);
      String str2 = this.loginService.quickSubmit("2", str1, str1, paramString, this);
      localObject = str2;
      Logger.e("ttag", "修改锁频状态" + (String)localObject);
      return localObject;
    }
    catch (IOException localIOException)
    {
      while (true)
        localIOException.printStackTrace();
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      while (true)
        localXmlPullParserException.printStackTrace();
    }
    catch (TimeOutException localTimeOutException)
    {
      while (true)
        localTimeOutException.printStackTrace();
    }
    catch (NotFoundNetWorkException localNotFoundNetWorkException)
    {
      while (true)
        localNotFoundNetWorkException.printStackTrace();
    }
  }

  public void answerRingingCall()
  {
    try
    {
      Intent localIntent1 = new Intent("android.intent.action.HEADSET_PLUG");
      localIntent1.addFlags(1073741824);
      localIntent1.putExtra("state", 1);
      localIntent1.putExtra("microphone", 1);
      localIntent1.putExtra("name", "Headset");
      sendOrderedBroadcast(localIntent1, "android.permission.CALL_PRIVILEGED");
      Intent localIntent2 = new Intent("android.intent.action.MEDIA_BUTTON");
      localIntent2.putExtra("android.intent.extra.KEY_EVENT", new KeyEvent(0, 79));
      sendOrderedBroadcast(localIntent2, "android.permission.CALL_PRIVILEGED");
      Intent localIntent3 = new Intent("android.intent.action.MEDIA_BUTTON");
      localIntent3.putExtra("android.intent.extra.KEY_EVENT", new KeyEvent(1, 79));
      sendOrderedBroadcast(localIntent3, "android.permission.CALL_PRIVILEGED");
      Intent localIntent4 = new Intent("android.intent.action.HEADSET_PLUG");
      localIntent4.addFlags(1073741824);
      localIntent4.putExtra("state", 0);
      localIntent4.putExtra("microphone", 1);
      localIntent4.putExtra("name", "Headset");
      sendOrderedBroadcast(localIntent4, "android.permission.CALL_PRIVILEGED");
      return;
    }
    catch (Exception localException)
    {
      while (true)
        localException.printStackTrace();
    }
    finally
    {
    }
  }

  public void onAttachedToWindow()
  {
    getWindow().setType(2004);
    super.onAttachedToWindow();
  }

  public void onBackPressed()
  {
    System.out.println("suoping-backpress");
    ShowScreen();
  }

  public void onClick(View paramView)
  {
    switch (paramView.getId())
    {
    default:
      return;
    case 2131493413:
      this.phonebeanListQQ = new RQFamilyPhone(this).getQQPhone();
      this.myQQAdapter.setData(this.phonebeanListQQ);
      this.myQQAdapter.notifyDataSetChanged();
      showTongXun();
      return;
    case 2131493414:
      showNotify();
      return;
    case 2131493415:
      showCourse();
      return;
    case 2131493416:
      showMenu();
      return;
    case 2131493418:
      showUnlockDialog();
      return;
    case 2131493400:
      showBottomMenu();
      return;
    case 2131493401:
      toUnlock();
      return;
    case 2131493419:
      showShutDownDialog();
      return;
    case 2131493410:
      showBottomMenu();
      return;
    case 2131493411:
      new MyAsyncTask().execute(new String[] { "close" });
      return;
    case 2131493422:
      ShowScreen();
      return;
    case 2131493407:
      phoneAnswer();
      return;
    case 2131493408:
      phoneReject();
      return;
    case 2131493428:
      dialNum(this.num);
      return;
    case 2131493429:
      goneDial();
      return;
    case 2131493432:
      ShowScreen();
      return;
    case 2131493444:
    }
    ShowScreen();
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    this.lock = View.inflate(this, 2130903186, null);
    setContentView(this.lock);
    this.serverAppBean = ((ServerAppBean)getApplication());
    App.initScreenContext(this);
    init();
    addListener();
  }

  protected void onDestroy()
  {
    super.onDestroy();
    try
    {
      unregisterReceiver(this.mReceiver);
      label12: onUnlock();
      return;
    }
    catch (Exception localException)
    {
      break label12;
    }
  }

  public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent)
  {
    boolean bool = true;
    switch (paramInt)
    {
    default:
      bool = super.onKeyDown(paramInt, paramKeyEvent);
    case 24:
    case 25:
      return bool;
    case 4:
      System.out.println("suoping-backpress");
      ShowScreen();
      return bool;
    case 3:
    }
    ShowScreen();
    return bool;
  }

  public void onLock()
  {
    if (this.sp == null)
      this.sp = getSharedPreferences("ScreenLock", 0);
    if (this.editor == null)
      this.editor = this.sp.edit();
    this.editor.putString("isLock", "1");
    this.editor.commit();
    Logger.e("ttag", "==onLock");
  }

  protected void onPause()
  {
    super.onPause();
    this.Tel.listen(this.MyListener, 0);
    try
    {
      unregisterReceiver(this.mStaReceiver);
      return;
    }
    catch (Exception localException)
    {
    }
  }

  protected void onResume()
  {
    super.onResume();
    onLock();
    setNameOfSchool();
    dealPhoneAsk();
    showFamilyScrn();
    registerBoradcastReceiver();
    getWindow().setFlags(2048, 2048);
  }

  public boolean onTouch(View paramView, MotionEvent paramMotionEvent)
  {
    switch (paramView.getId())
    {
    default:
    case 2131493417:
    }
    while (true)
    {
      return false;
      showBottomMenu();
    }
  }

  public void onUnlock()
  {
    if (this.sp == null)
      this.sp = getSharedPreferences("ScreenLock", 0);
    if (this.editor == null)
      this.editor = this.sp.edit();
    this.editor.putString("isLock", "0");
    this.editor.commit();
    Logger.i("ttag", "==onUnlock");
  }

  public void registerBoradcastReceiver()
  {
    try
    {
      IntentFilter localIntentFilter = new IntentFilter();
      localIntentFilter.addAction("closeScreenActivity");
      localIntentFilter.addAction("showNotify");
      registerReceiver(this.mReceiver, localIntentFilter);
      return;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
    }
  }

  public class MyAsyncTask extends AsyncTask<String, Integer, String>
  {
    private String alertString = "-1";
    private String method = "";

    public MyAsyncTask()
    {
    }

    // ERROR //
    protected String doInBackground(String[] paramArrayOfString)
    {
      // Byte code:
      //   0: aload_0
      //   1: aload_1
      //   2: iconst_0
      //   3: aaload
      //   4: putfield 21	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:method	Ljava/lang/String;
      //   7: aload_0
      //   8: getfield 21	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:method	Ljava/lang/String;
      //   11: ldc 36
      //   13: invokevirtual 42	java/lang/String:equals	(Ljava/lang/Object;)Z
      //   16: ifeq +163 -> 179
      //   19: aload_0
      //   20: getfield 14	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:this$0	Lcom/appwoo/txtws/activity/ScreenOffActivity;
      //   23: invokestatic 48	com/appwoo/txtws/component/Global:getDateAndTime	(Landroid/content/Context;)Ljava/lang/String;
      //   26: astore_2
      //   27: new 50	com/appwoo/txtws/service/RQScreenLock
      //   30: dup
      //   31: aload_0
      //   32: getfield 14	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:this$0	Lcom/appwoo/txtws/activity/ScreenOffActivity;
      //   35: invokespecial 53	com/appwoo/txtws/service/RQScreenLock:<init>	(Landroid/content/Context;)V
      //   38: aload_2
      //   39: invokevirtual 57	com/appwoo/txtws/service/RQScreenLock:UnlockScreenCmd	(Ljava/lang/String;)V
      //   42: aload_0
      //   43: getfield 14	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:this$0	Lcom/appwoo/txtws/activity/ScreenOffActivity;
      //   46: ldc 59
      //   48: iconst_0
      //   49: invokevirtual 65	com/appwoo/txtws/activity/ScreenOffActivity:getSharedPreferences	(Ljava/lang/String;I)Landroid/content/SharedPreferences;
      //   52: ldc 67
      //   54: ldc 69
      //   56: invokeinterface 75 3 0
      //   61: astore_3
      //   62: aload_0
      //   63: getfield 14	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:this$0	Lcom/appwoo/txtws/activity/ScreenOffActivity;
      //   66: invokestatic 79	com/appwoo/txtws/component/Global:isConnect	(Landroid/content/Context;)Z
      //   69: istore 4
      //   71: aload_3
      //   72: ldc 81
      //   74: invokevirtual 42	java/lang/String:equals	(Ljava/lang/Object;)Z
      //   77: ifeq +80 -> 157
      //   80: iload 4
      //   82: ifne +75 -> 157
      //   85: aload_0
      //   86: getfield 14	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:this$0	Lcom/appwoo/txtws/activity/ScreenOffActivity;
      //   89: invokestatic 85	com/appwoo/txtws/activity/ScreenOffActivity:access$27	(Lcom/appwoo/txtws/activity/ScreenOffActivity;)Landroid/content/SharedPreferences$Editor;
      //   92: ldc 87
      //   94: ldc 89
      //   96: invokeinterface 95 3 0
      //   101: pop
      //   102: aload_0
      //   103: getfield 14	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:this$0	Lcom/appwoo/txtws/activity/ScreenOffActivity;
      //   106: invokestatic 85	com/appwoo/txtws/activity/ScreenOffActivity:access$27	(Lcom/appwoo/txtws/activity/ScreenOffActivity;)Landroid/content/SharedPreferences$Editor;
      //   109: ldc 97
      //   111: ldc 89
      //   113: invokeinterface 95 3 0
      //   118: pop
      //   119: aload_0
      //   120: getfield 14	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:this$0	Lcom/appwoo/txtws/activity/ScreenOffActivity;
      //   123: invokestatic 85	com/appwoo/txtws/activity/ScreenOffActivity:access$27	(Lcom/appwoo/txtws/activity/ScreenOffActivity;)Landroid/content/SharedPreferences$Editor;
      //   126: invokeinterface 101 1 0
      //   131: pop
      //   132: iconst_1
      //   133: putstatic 105	com/appwoo/txtws/component/Global:doubleLock	Z
      //   136: ldc 107
      //   138: areturn
      //   139: astore 6
      //   141: iconst_1
      //   142: putstatic 105	com/appwoo/txtws/component/Global:doubleLock	Z
      //   145: goto -9 -> 136
      //   148: astore 5
      //   150: iconst_1
      //   151: putstatic 105	com/appwoo/txtws/component/Global:doubleLock	Z
      //   154: aload 5
      //   156: athrow
      //   157: iload 4
      //   159: ifeq +15 -> 174
      //   162: aload_0
      //   163: aload_0
      //   164: getfield 14	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:this$0	Lcom/appwoo/txtws/activity/ScreenOffActivity;
      //   167: aload_2
      //   168: invokestatic 111	com/appwoo/txtws/activity/ScreenOffActivity:access$28	(Lcom/appwoo/txtws/activity/ScreenOffActivity;Ljava/lang/String;)Ljava/lang/String;
      //   171: putfield 25	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:alertString	Ljava/lang/String;
      //   174: aload_0
      //   175: getfield 25	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:alertString	Ljava/lang/String;
      //   178: areturn
      //   179: aload_0
      //   180: getfield 21	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:method	Ljava/lang/String;
      //   183: ldc 113
      //   185: invokevirtual 42	java/lang/String:equals	(Ljava/lang/Object;)Z
      //   188: ifeq -14 -> 174
      //   191: aload_0
      //   192: getfield 14	com/appwoo/txtws/activity/ScreenOffActivity$MyAsyncTask:this$0	Lcom/appwoo/txtws/activity/ScreenOffActivity;
      //   195: invokestatic 116	com/appwoo/txtws/activity/ScreenOffActivity:access$29	(Lcom/appwoo/txtws/activity/ScreenOffActivity;)V
      //   198: goto -24 -> 174
      //
      // Exception table:
      //   from	to	target	type
      //   85	132	139	java/lang/Exception
      //   85	132	148	finally
    }

    protected void onPostExecute(String paramString)
    {
      super.onPostExecute(paramString);
      if (this.method.equals("screenLock"))
        if (paramString.equals("0"))
        {
          ScreenOffActivity.this.handler.removeCallbacks(ScreenOffActivity.this.runlow);
          ScreenOffActivity.this.finish();
          if (Global.doubleLock)
            new WebTimeControlService(ScreenOffActivity.this).upUnLockCmd();
          Toast.makeText(ScreenOffActivity.this, ScreenOffActivity.this.getString(2131427849), 0).show();
        }
      while (true)
      {
        Intent localIntent = new Intent("closeScreenActivity");
        ScreenOffActivity.this.sendBroadcast(localIntent);
        ScreenOffActivity.this.showBottomMenu();
        try
        {
          ScreenOffActivity.this.v_progressDialog.dismiss();
          do
          {
            return;
            ScreenOffActivity.this.finish();
            break;
          }
          while (!this.method.equals("close"));
          ScreenOffActivity.this.showBottomMenu();
          return;
        }
        catch (Exception localException)
        {
        }
      }
    }

    protected void onPreExecute()
    {
      ScreenOffActivity.this.createOrShowDialog();
    }
  }

  public class MyOnClickListener
    implements View.OnClickListener
  {
    private int index = 0;

    public MyOnClickListener(int arg2)
    {
      int i;
      this.index = i;
    }

    public void onClick(View paramView)
    {
      ScreenOffActivity.this.mPager.setCurrentItem(this.index);
    }
  }

  public class MyOnClickListener2
    implements View.OnClickListener
  {
    private int index2 = 0;

    public MyOnClickListener2(int arg2)
    {
      int i;
      this.index2 = i;
    }

    public void onClick(View paramView)
    {
      ScreenOffActivity.this.mPager2.setCurrentItem(this.index2);
    }
  }

  public class MyOnPageChangeListener
    implements ViewPager.OnPageChangeListener
  {
    int one = 2 * ScreenOffActivity.this.offset + ScreenOffActivity.this.bmpW;
    int two = 2 * this.one;

    public MyOnPageChangeListener()
    {
    }

    public void onPageScrollStateChanged(int paramInt)
    {
    }

    public void onPageScrolled(int paramInt1, float paramFloat, int paramInt2)
    {
    }

    public void onPageSelected(int paramInt)
    {
      ScreenOffActivity.this.telLog = paramInt;
      ScreenOffActivity.this.sln_tv_qq.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230787));
      ScreenOffActivity.this.sln_tv_jj.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230787));
      ScreenOffActivity.this.sln_tv_qq.setText(Html.fromHtml("<u>" + ScreenOffActivity.this.getString(2131427620) + "</u>"));
      ScreenOffActivity.this.sln_tv_jj.setText(Html.fromHtml("<u>" + ScreenOffActivity.this.getString(2131427619) + "</u>"));
      Object localObject;
      if (paramInt == 0)
      {
        ScreenOffActivity.this.sln_tv_jj.setText(ScreenOffActivity.this.getString(2131427619));
        ScreenOffActivity.this.sln_tv_qq.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230788));
        localObject = null;
        switch (paramInt)
        {
        default:
        case 0:
        case 1:
        case 2:
        }
      }
      while (true)
      {
        ScreenOffActivity.this.currIndex = paramInt;
        ((Animation)localObject).setFillAfter(true);
        ((Animation)localObject).setDuration(300L);
        ScreenOffActivity.this.cursor.startAnimation((Animation)localObject);
        return;
        ScreenOffActivity.this.sln_tv_qq.setText(ScreenOffActivity.this.getString(2131427620));
        ScreenOffActivity.this.sln_tv_jj.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230788));
        break;
        if (ScreenOffActivity.this.currIndex == 1)
        {
          localObject = new TranslateAnimation(this.one, 0.0F, 0.0F, 0.0F);
        }
        else
        {
          int k = ScreenOffActivity.this.currIndex;
          localObject = null;
          if (k == 2)
          {
            localObject = new TranslateAnimation(this.two, 0.0F, 0.0F, 0.0F);
            continue;
            if (ScreenOffActivity.this.currIndex == 0)
            {
              localObject = new TranslateAnimation(ScreenOffActivity.this.offset, this.one, 0.0F, 0.0F);
            }
            else
            {
              int j = ScreenOffActivity.this.currIndex;
              localObject = null;
              if (j == 2)
              {
                localObject = new TranslateAnimation(this.two, this.one, 0.0F, 0.0F);
                continue;
                if (ScreenOffActivity.this.currIndex == 0)
                {
                  localObject = new TranslateAnimation(ScreenOffActivity.this.offset, this.two, 0.0F, 0.0F);
                }
                else
                {
                  int i = ScreenOffActivity.this.currIndex;
                  localObject = null;
                  if (i == 1)
                    localObject = new TranslateAnimation(this.one, this.two, 0.0F, 0.0F);
                }
              }
            }
          }
        }
      }
    }
  }

  public class MyOnPageChangeListener2
    implements ViewPager.OnPageChangeListener
  {
    public MyOnPageChangeListener2()
    {
    }

    public void onPageScrollStateChanged(int paramInt)
    {
    }

    public void onPageScrolled(int paramInt1, float paramFloat, int paramInt2)
    {
    }

    public void onPageSelected(int paramInt)
    {
      ScreenOffActivity.this.sln_tv_week1.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230787));
      ScreenOffActivity.this.sln_tv_week2.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230787));
      ScreenOffActivity.this.sln_tv_week3.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230787));
      ScreenOffActivity.this.sln_tv_week4.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230787));
      ScreenOffActivity.this.sln_tv_week5.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230787));
      ScreenOffActivity.this.sln_tv_week6.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230787));
      ScreenOffActivity.this.sln_tv_week7.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230787));
      ScreenOffActivity.this.sln_tv_week1.setText(ScreenOffActivity.this.getString(2131427928));
      ScreenOffActivity.this.sln_tv_week2.setText(ScreenOffActivity.this.getString(2131427929));
      ScreenOffActivity.this.sln_tv_week3.setText(ScreenOffActivity.this.getString(2131427930));
      ScreenOffActivity.this.sln_tv_week4.setText(ScreenOffActivity.this.getString(2131427931));
      ScreenOffActivity.this.sln_tv_week5.setText(ScreenOffActivity.this.getString(2131427932));
      ScreenOffActivity.this.sln_tv_week6.setText(ScreenOffActivity.this.getString(2131427933));
      ScreenOffActivity.this.sln_tv_week7.setText(ScreenOffActivity.this.getString(2131427927));
      switch (paramInt)
      {
      default:
        return;
      case 0:
        ScreenOffActivity.this.sln_tv_week1.setText(Html.fromHtml("<u>" + ScreenOffActivity.this.getString(2131427928) + "</u>"));
        ScreenOffActivity.this.sln_tv_week1.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230788));
        return;
      case 1:
        ScreenOffActivity.this.sln_tv_week2.setText(Html.fromHtml("<u>" + ScreenOffActivity.this.getString(2131427929) + "</u>"));
        ScreenOffActivity.this.sln_tv_week2.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230788));
        return;
      case 2:
        ScreenOffActivity.this.sln_tv_week3.setText(Html.fromHtml("<u>" + ScreenOffActivity.this.getString(2131427930) + "</u>"));
        ScreenOffActivity.this.sln_tv_week3.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230788));
        return;
      case 3:
        ScreenOffActivity.this.sln_tv_week4.setText(Html.fromHtml("<u>" + ScreenOffActivity.this.getString(2131427931) + "</u>"));
        ScreenOffActivity.this.sln_tv_week4.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230788));
        return;
      case 4:
        ScreenOffActivity.this.sln_tv_week5.setText(Html.fromHtml("<u>" + ScreenOffActivity.this.getString(2131427932) + "</u>"));
        ScreenOffActivity.this.sln_tv_week5.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230788));
        return;
      case 5:
        ScreenOffActivity.this.sln_tv_week6.setText(Html.fromHtml("<u>" + ScreenOffActivity.this.getString(2131427933) + "</u>"));
        ScreenOffActivity.this.sln_tv_week6.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230788));
        return;
      case 6:
      }
      ScreenOffActivity.this.sln_tv_week7.setText(Html.fromHtml("<u>" + ScreenOffActivity.this.getString(2131427927) + "</u>"));
      ScreenOffActivity.this.sln_tv_week7.setTextColor(ScreenOffActivity.this.getResources().getColor(2131230788));
    }
  }

  private class MyPhoneStateListener extends PhoneStateListener
  {
    private static final int SIGNAL_STRENGTH_FULL = 5;
    private static final int SIGNAL_STRENGTH_GOOD = 3;
    private static final int SIGNAL_STRENGTH_GREAT = 4;
    private static final int SIGNAL_STRENGTH_MODERATE = 2;
    private static final int SIGNAL_STRENGTH_NONE_OR_UNKNOWN = 0;
    private static final int SIGNAL_STRENGTH_POOR = 1;
    private int asu = 0;
    private int dBm;

    private MyPhoneStateListener()
    {
    }

    public void onSignalStrengthsChanged(SignalStrength paramSignalStrength)
    {
      super.onSignalStrengthsChanged(paramSignalStrength);
      if (!paramSignalStrength.isGsm())
      {
        this.dBm = paramSignalStrength.getCdmaDbm();
        if (this.dBm >= -75)
          return;
        if (this.dBm >= -85)
          return;
        if (this.dBm >= -95)
          return;
        if (this.dBm >= -105)
          return;
        if (this.dBm >= -112)
          return;
        return;
      }
      this.asu = paramSignalStrength.getGsmSignalStrength();
      if ((this.asu < 0) || (this.asu >= 99))
        return;
      if (this.asu >= 16)
        return;
      if (this.asu >= 12)
        return;
      if (this.asu >= 8)
        return;
      if (this.asu >= 4);
    }
  }

  class RunLow
    implements Runnable
  {
    RunLow()
    {
    }

    public void run()
    {
      ComponentName localComponentName = new ComponentName(ScreenOffActivity.this, deviceAdminReceiver.class);
      DevicePolicyManager localDevicePolicyManager = (DevicePolicyManager)ScreenOffActivity.this.getSystemService("device_policy");
      if (localDevicePolicyManager.isAdminActive(localComponentName));
      try
      {
        localDevicePolicyManager.lockNow();
        return;
      }
      catch (Exception localException)
      {
      }
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.activity.ScreenOffActivity
 * JD-Core Version:    0.6.2
 */